package com.guojinbao.east.controller.pool;

import org.apache.commons.pool2.impl.GenericObjectPool;

import com.guojinbao.east.fuyou.utils.HttpClientHelper;
import com.rbao.east.entity.User;
import com.rbao.east.utils.HttpPostUtils;

public class TestPool {
	public static void main(String args[]){	
		 /*GenericObjectPool<UserInfo> pool = new GenericObjectPool<UserInfo>(new UserFactory());
		 try {
	         UserInfo user = pool.borrowObject();
	         user.setAge(10);
	         user.setName("mh");
	         System.out.println(user.toString());
	         pool.returnObject(user);
	     } catch (Exception e) {
	         // TODO Auto-generated catch block
	         e.printStackTrace();
	     }*/
		String url = "https://kyfw.12306.cn/otn/leftTicket/queryZ?leftTicketDTO.train_date=2018-02-12&leftTicketDTO.from_station=SHH&leftTicketDTO.to_station=NJH&purpose_codes=ADULT";
		//HttpClientHelper.do
		String resStr = HttpPostUtils.httpGet(url, null);
		//HttpClientHelper.doPost(loginUrl, _params);
		System.out.println("resStr="+resStr);
		System.out.println("resStr="+resStr);
			System.out.println("resStr="+resStr);
						System.out.println("resStr="+resStr);
	}
	
	
	
}
